package com.frinder.javafx;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.stage.Stage;

/**
 *
 */
public class Main extends Application {

    @Override
    public void start(Stage stage) throws Exception {
        // 内容面板
        Map map = new Map(50, 25);
        stage.setTitle("地图格子");
        Scene scene = new Scene(map.getPane(), 1100, 600);
        stage.setScene(scene);
        stage.setOnShowing(event -> System.out.println("窗口正在打开！！"));
        stage.setOnShown(event -> System.out.println("窗口打开了！！"));
        stage.setOnCloseRequest(event -> System.out.println("窗口要关闭了！！"));
        stage.show();
    }

    public static void main(String[] args) {
        launch(args);
    }
}
